﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MoonLight.LibCommon
{
    public class Notifier
    {
        public Notifier() {
            
        }

        virtual public void handle_message(MessageInfo msg)
        {
        }
    }
    
    public interface INotifier
    {
        void handle_message(MessageInfo msg);    
    }

    public class MessageInfo
    {
        public MessageInfo()
        {
            msg_type = CommonDefine.MsgType_e.MSG_UNKNOWN;
            msg_data = null;
        }

        public MessageInfo(Object type)
        {
            msg_type = type;
        }

        public Object msg_type;
        public Object msg_data;
    }
}
